Telegram Group & Telegram Channel
🔈 #news
Memory monitoring
TradingView will ease down on the gradual tightening of script memory usage for the next month. This will allow for the imminent deployment of arrays to proceed without interference from changes related to memory monitoring.

Barring any unforeseen need to make adjustments during the coming month, the script memory monitoring process will resume after that period.

🔷 Why monitor memory usage?
The main reason why script memory usage needs to be managed is to ensure a more fair and efficient use of the infrastructure by script users. Another positive outcome expected out of the process will be the possibility to relax some arbitrary limits imposed on the use of other script resources such as drawings and plots.

🔷 Why make the process gradual?
TradingView decided to make the process gradual because this will make it possible to achieve the highest working limit for allowed memory per script. As a result, a smaller number of scripts will have been affected by the time the optimal limit is reached. If TV had decided to impose an arbitrarily low limit such as the very ones they wish to relax for drawings and plots, a much larger number of scripts would have been affected. The gradual approach, however, entails that the few authors of scripts making heavy use of memory resources may need to adapt their scripts a few times if their first adaptations keep their scripts too close to the limit.

🔷 Tips to reduce memory use in your scripts
The two most frequent causes for heavy memory use in Pine scripts are:
1. The use of large numbers of security() calls.
2. Using large values for max_bars_back.

To reduce the number of security calls in your scripts, ensure you maximize security()'s potential to return tuples. Using tuples, it is no longer necessary to make multiple calls to fetch different values from the same ticker/HTF.

Concerning the historical buffer controlled by max_bars_back, read this Help Center page if you haven't done so already:
https://www.tradingview.com/scripts/editors-picks/?solution=43000587849
It explains in detail what the historical buffer is. Recall from our previous announcement that the historical buffer for variables will eventually be reduced to 1, as it already is for function calls. This entails that all scripts making use of historical values of variables will require explicit management of the buffer.
Do NOT adopt the easy solution to add max_bars_back = 5000 to your study() or strategy() declaration statement, as this will most likely condemn you to adapt your script again in the future. Only use max_bars_back in your declaration statement if you need a historical buffer for function calls. If you only need a buffer for variables, use the max_bars_back() function on those specific variables only, and limit the buffer's size to the minimum required by your script.
Also, keep in mind that when you declare a certain historical buffer size, capping the offset you use with the history-referencing operator so that it does not exceed that buffer size will prevent your script from throwing runtime errors.



tg-me.com/PineCodersSquawkBox/88
Create:
Last Update:

🔈 #news
Memory monitoring
TradingView will ease down on the gradual tightening of script memory usage for the next month. This will allow for the imminent deployment of arrays to proceed without interference from changes related to memory monitoring.

Barring any unforeseen need to make adjustments during the coming month, the script memory monitoring process will resume after that period.

🔷 Why monitor memory usage?
The main reason why script memory usage needs to be managed is to ensure a more fair and efficient use of the infrastructure by script users. Another positive outcome expected out of the process will be the possibility to relax some arbitrary limits imposed on the use of other script resources such as drawings and plots.

🔷 Why make the process gradual?
TradingView decided to make the process gradual because this will make it possible to achieve the highest working limit for allowed memory per script. As a result, a smaller number of scripts will have been affected by the time the optimal limit is reached. If TV had decided to impose an arbitrarily low limit such as the very ones they wish to relax for drawings and plots, a much larger number of scripts would have been affected. The gradual approach, however, entails that the few authors of scripts making heavy use of memory resources may need to adapt their scripts a few times if their first adaptations keep their scripts too close to the limit.

🔷 Tips to reduce memory use in your scripts
The two most frequent causes for heavy memory use in Pine scripts are:
1. The use of large numbers of security() calls.
2. Using large values for max_bars_back.

To reduce the number of security calls in your scripts, ensure you maximize security()'s potential to return tuples. Using tuples, it is no longer necessary to make multiple calls to fetch different values from the same ticker/HTF.

Concerning the historical buffer controlled by max_bars_back, read this Help Center page if you haven't done so already:
https://www.tradingview.com/scripts/editors-picks/?solution=43000587849
It explains in detail what the historical buffer is. Recall from our previous announcement that the historical buffer for variables will eventually be reduced to 1, as it already is for function calls. This entails that all scripts making use of historical values of variables will require explicit management of the buffer.
Do NOT adopt the easy solution to add max_bars_back = 5000 to your study() or strategy() declaration statement, as this will most likely condemn you to adapt your script again in the future. Only use max_bars_back in your declaration statement if you need a historical buffer for function calls. If you only need a buffer for variables, use the max_bars_back() function on those specific variables only, and limit the buffer's size to the minimum required by your script.
Also, keep in mind that when you declare a certain historical buffer size, capping the offset you use with the history-referencing operator so that it does not exceed that buffer size will prevent your script from throwing runtime errors.

BY PineCoders Squawk Box




Share with your friend now:
tg-me.com/PineCodersSquawkBox/88

View MORE
Open in Telegram


PineCoders Squawk Box Telegram | DID YOU KNOW?

Date: |

Telegram and Signal Havens for Right-Wing Extremists

Since the violent storming of Capitol Hill and subsequent ban of former U.S. President Donald Trump from Facebook and Twitter, the removal of Parler from Amazon’s servers, and the de-platforming of incendiary right-wing content, messaging services Telegram and Signal have seen a deluge of new users. In January alone, Telegram reported 90 million new accounts. Its founder, Pavel Durov, described this as “the largest digital migration in human history.” Signal reportedly doubled its user base to 40 million people and became the most downloaded app in 70 countries. The two services rely on encryption to protect the privacy of user communication, which has made them popular with protesters seeking to conceal their identities against repressive governments in places like Belarus, Hong Kong, and Iran. But the same encryption technology has also made them a favored communication tool for criminals and terrorist groups, including al Qaeda and the Islamic State.

Should I buy bitcoin?

“To the extent it is used I fear it’s often for illicit finance. It’s an extremely inefficient way of conducting transactions, and the amount of energy that’s consumed in processing those transactions is staggering,” the former Fed chairwoman said. Yellen’s comments have been cited as a reason for bitcoin’s recent losses. However, Yellen’s assessment of bitcoin as a inefficient medium of exchange is an important point and one that has already been raised in the past by bitcoin bulls. Using a volatile asset in exchange for goods and services makes little sense if the asset can tumble 10% in a day, or surge 80% over the course of a two months as bitcoin has done in 2021, critics argue. To put a finer point on it, over the past 12 months bitcoin has registered 8 corrections, defined as a decline from a recent peak of at least 10% but not more than 20%, and two bear markets, which are defined as falls of 20% or more, according to Dow Jones Market Data.

PineCoders Squawk Box from ca


Telegram PineCoders Squawk Box
FROM USA